<?php
ArrowController::importModel("smarty.SmartyCompiler");
class ArrowMapImage extends ArrowTagContainer{
	
	private $imagePath;
	
	public function configure(){
		$this->addProperties(array(
			"field" => null, //rowExtensionTemplate, searchTemplate
			"value" => null,
			"image" => null
		));
		//$this->setRequiredParent("image");
		$this->addRequiredProperties(array("image"));
		$this->setContentCodeKept(true);
		$this->setDisplay(false);
	}
	
	public function init(){
		$this->imagePath = ArrowController::$activeProject->getResources()->getResource($this->getProperty("image"))->getRelativePath(); 
	}
	
	public function getImagePath(){
		return $this->imagePath;
	}
	
	public function generateOutputCode(){
		return;
	}

}
?>
